import request from "@/utils/request";



export const getDetail = params => {
  return request({
    url: '/user/detail',  
    params
  })
} 
export const add = data => {
  return request({
    url: '/user/add',  
    method: 'POST',
    data
  })
} 

export const setGold = data => {
  return request({
    url: '/accounts/gold',  
    method: 'POST',
    data
  })
} 

export const setMember = data => {
  return request({
    url: '/accounts/member',  
    method: 'POST',
    data
  })
} 

export const getList = params => {
  return request({
    url: '/user/page',  
    method: 'POST',
    params
  })
} 

export const redeemCodes = params => {
  return request({
    url: '/accounts/redeemCodes',
    params
  })
} 

 

export const update = data => {
  return request({
    url: '/user/update',
    method: 'POST',
    data
  })
} 

//充值记录
export const rechargeRecord = params => {
  return request({
    url: '/accounts/rechargeRecord',
    params
  })
} 

//支付记录
export const payRecords = params => {
  return request({
    url: '/accounts/payRecords',
    params
  })
} 

//消费记录
export const consumeRecords = params => {
  return request({
    url: '/accounts/consumeRecords',
    params
  })
} 
